package cn.hchaojie.javase.day07;

public class Crud {

}

interface Inserter {
	void insert();
}

interface Deleter {
	void delete();
}

interface Updater {
	void update();
}

interface Seacher {
	void search();
}

// Data access object
interface Dao extends Inserter, Deleter, Updater, Seacher {
	
}

class DbDao implements Dao {

	@Override
	public void insert() {
		System.out.println("insert ");
	}

	@Override
	public void delete() {
	}

	@Override
	public void update() {
	}

	@Override
	public void search() {
	}
	
}

class DbReadDeleteDao implements Inserter, Deleter {

	@Override
	public void delete() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void insert() {
		// TODO Auto-generated method stub
		
	}
	
}
